package com.pt.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pt.entity.Request;
import com.pt.dto.response.RequestResponse;

public interface RequestService {
    
    IPage<RequestResponse> getRequests(Page<RequestResponse> page, Integer categoryId, Integer status);
    
    RequestResponse getRequestById(Long requestId);
    
    Request createRequest(Request request);
    
    void fillRequest(Long requestId, Long torrentId, Long fillerId);
    
    void closeRequest(Long requestId, Long userId);
} 